package com.yzf.enterprise.common.constant;

import io.jsonwebtoken.Claims;

/**
 * 通用常量信息
 *
 * @author china
 */
public class Constants {


    private Constants() {

    }

    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 验证码有效期（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 2;

    /**
     * 令牌
     */
    public static final String TOKEN = "token";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login_user_key";

    /**
     * 用户ID
     */
    public static final String JWT_USERID = "userid";

    /**
     * 用户名称
     */
    public static final String JWT_USERNAME = Claims.SUBJECT;

    /**
     * 用户头像
     */
    public static final String JWT_AVATAR = "avatar";

    /**
     * 创建时间
     */
    public static final String JWT_CREATED = "created";

    /**
     * 用户权限
     */
    public static final String JWT_AUTHORITIES = "authorities";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * 市勘测员权限key
     */
    public static final String PERMISSION_CITY_SURVERY_USER = "city_survery_user";

    /**
     * 市级审核员
     */
    public static final String PERMISSION_CITY_APPROVER = "city_approver";

    /**
     * 市级管理员
     */
    public static final String PERMISSION_CITY_ADMIN_USER = "city_admin";

    /**
     * 市级巡航员
     */
    public static final String PERMISSION_CITY_INSPECT = "inspect";

    /**
     * 区勘测员权限key
     */
    public static final String PERMISSION_AREA_SURVERY_USER = "area_survery_user";

    /**
     * 区级审核员
     */
    public static final String PERMISSION_AREA_APPROVER = "area_approver";

    /**
     * 区级管理员
     */
    public static final String PERMISSION_AREA_ADMIN_USER = "area_admin";

    /**
     * 街道审核员
     */
    public static final String PERMISSION_STREET_SURVERY_USER = "street_survery_user";

    public static final String PERMISSION_STREET_APPROVER = "street_approver";

    public static final String PERMISSION_STREET_ADMIN = "street_admin";

    /**
     * 申请材料类型：复工申请表前缀
     */
    public static final String ITEM_TYPE_APPLY_FORM_PREFIX = "APPLY_FORM";

    /**
     * 申请材料类型：工作计划表前缀
     */
    public static final String ITEM_TYPE_WORK_PLAN_PREFIX = "WORK_PLAN";

    /**
     * 申请材料类型：疫情信息排查表前缀
     */
    public static final String ITEM_TYPE_INVESTIGATION_FORM_PREFIX = "INVESTIGATION_FORM";

    /**
     * 申请材料后缀
     */
    public static final String ITEM_TYPE_SUFFIX = "FILE,IMG";

    public static final String ITEM_TYPE_SUFFIX_FILE = "FILE";

    public static final String ITEM_TYPE_SUFFIX_IMG = "IMG";


    public static final String IS_ALL = "is_all";//全部
    public static final String IS_FARE = "is_fare";//'是否发热'
    public static final String IS_QUEZHENG = "is_quezheng";//'是否确认为新冠感染者'
    public static final String IS_GOWUHAN = "is_gowuhan";//'14天内是否去武汉过'
    public static final String IS_TOUCHWUHAN = "is_touchwuhan";//'14天内是否接触湖北地区人员'
    public static final String IS_TOUCHILL = "is_touchill";//'14天内是否接触发热咳嗽的人'


    public static final String SFZ = "0";//'身份证'
    public static final String JGZ = "1";//'军官 证'
    public static final String HZ = "2";//'护照'
    public static final String TBZ = "3";//'台胞证'
    public static final String GATXZ = "4";//'港澳通行证'


}
